package com.xmy.cultivate.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.xmy.cultivate.entity.TrackDetail;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author min
 * @since 2022-12-27
 */
public interface TrackDetailMapper extends BaseMapper<TrackDetail> {
    @Select("SELECT track_detail.* FROM track_detail LEFT JOIN track_market ON track_detail.track_id = track_market.id ${ew.customSqlSegment} ")
    TrackDetail detailServiceOne(@Param(Constants.WRAPPER) Wrapper wrapper);

}
